Computer Science Lesson Plan
Class: 7 - Lesson: 14 Training AI Models and Using Them in Scratch

Purpose: To introduce students to training AI models and using them in Scratch.

No. of Classes

One or two classes (teacher's decision).

Material Required

Scratch 3.0, internet.

Prior Knowledge

Students should know:

  • How to browse the internet.
  • The basic Scratch blocks and how to add extensions.
  • Exercises

    Exercise 1



    1. Train a simple AI model - an image classifier that identifies objects - and then use it in a Scratch program.


    Teacher Instructions
    1. Explain that an AI model is not programmed with rules - it is trained on examples, and then makes predictions on new inputs it has not seen before.
    2. Demonstrate how to create a project in Machine Learning for Kids, add training buckets (labels), and upload or capture several example images for each label.
    3. Ask students to train the model, then test it with a new image and observe the confidence score.
    4. Have students add more examples for a label and retrain, so they can see how the number and variety of examples changes the result.
    5. Discuss what happens when the model is given something it was never trained on, and why it still returns an answer.